home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98b.txt
/
000023_icon-group-sender _Wed May 13 07:42:30 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id HAA17889
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Wed, 13 May 1998 07:42:29 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA22013; Wed, 13 May 1998 07:42:25 -0700
Message-Id: <3.0.5.32.19980512175257.007a7c40@doors>
X-Sender: bgbauer#alpha.delta.edu@doors
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32)
Date: Tue, 12 May 1998 17:52:57 -0700
To: "Icon Group"<icon-group@optima.CS.Arizona.EDU>
From: Scissors <jebediah@bigfoot.com>
Subject: Determining O/S
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 967
Oh, I thought of another question thats been bugging me. What is the easiest
way to determine the O/S your running on? I would have no idea how to
determine
unix, and Im uncertain the 'best' way to determine if the O/S is win3.1,
win95,
or winNT?
Would it be best to use some of the ifdef lines I've noticed in io.icn for
o/s secific code? if so what are the available definitions?
At first I thought code similar to this would work (which is from yescr.icn):
if find("UNIX",&features) then {
expressions
}
else if find("MS-DOS", &features) then {
expressions
}
else if find("MS Windows NT", &features) then {
expressions
}
But this would lump win3.1 (win32s) with win95, and NT, and i believe it
wouldnt give any indication of if the app is console, or windowed. Code
i'm working on now would need to act differently on win3.1 than it would on
win95/nt.
Any help, suggestions, or comments welcome.
Thanks,
scissors